<!-- eslint-disable vue/valid-template-root -->
<template></template>

<script lang="ts" setup>
  import { onLaunch } from '@dcloudio/uni-app';
  import { useUserStore } from '/@/store/modules/user';

  const userStore = useUserStore();

  onLaunch(async () => {
    await userStore.setConfigAction();
    const mustLogin = userStore.getConfig?.must_login;

    if (mustLogin === 1) {
      uni.navigateTo({
        url: '/pages/login/index',
      });
    }
  });
</script>

<style lang="scss">
  @import 'uview-plus/index.scss';
  @import 'design/index.scss';
</style>
